package com.kfm.base.anno;


import com.kfm.base.reflect.Dept;
import com.kfm.base.reflect.Emp;
import com.kfm.base.reflect.User;

import java.util.List;

public interface DeptDAO {

    @Select(sql = "select * from dept")
    List<Dept> selectAll();


    @Select(sql = "select * from user")
    List<User> selectAllUser();

    @Select(sql = "select * from emp")
    List<Emp> selectAllEmp();


    @Select(sql = "select * from dept where depto = ?")
    Dept selectOne(Integer deptno);
}
